<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	isELIgnored="false"%>
<%@ include file="/WEB-INF/common/path.jsp"%>
<%@ include file="/WEB-INF/common/tag.jsp"%>
<html>
<head>
 <base href="${basePath}">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>发主题帖</title>
 <script type="text/javascript" src="${path }/js/resource/jquery.js"></script>
  <script type="text/javascript" src="${path }/js/resource/send_new_topic.js"></script>
<script type="text/javascript" src="${path }/js/resource/ajaxfileupload.js"></script>

<%-- <!-- 依赖的基础类库 -->
<script type="text/javascript" src="${path }/kissy/yahoo-dom-event.js"></script>

<!-- 图片上传插件需要下面两个文件 -->
<script type="text/javascript" src="${path }/kissy/connection-min.js"></script>
<script type="text/javascript" src="${path }/kissy/json-min.js"></script>



<link rel="stylesheet" href="${path }/kissy/themes/default/editor-min.css" type="text/css"/>
 --%>
<script type="text/javascript" src="${path }/js/umditor/umeditor.config.js"></script>
<script type="text/javascript" src="${path }/js/umditor/umeditor.js"></script>
<link href="${path }/js/umditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">

<style type="text/css">
	#categoryDiv{
		background-color:#CCCCCC;
		height:400px;
		width:500px;
		display:none;
		z-index:100;
		left:40%;/*FF IE7*/ 
 		top:30%;/*FF IE7*/ 
 		margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */ 
 		margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/ 
		 margin-top:0px; 
 		position:fixed!important;/*FF IE7*/ 
 		position:absolute;/*IE6*/  
	}
</style>
 </head>
 <body>
 <div align="center"><div><h1>发主题帖</h1></div>
 
 <div >
 <form action="${path }/topic/submitTopic" >
user:${normal_user_session.name }<br/>
 title:<input name="topicTitle" placeholder="34个字之内"><br/>
 楼主说:<textarea rows="8" cols="63" name="topicContent" placeholder="140个字之内"></textarea>
 <br/>
 <br/><br/>
 
 <br/><br/>
 	商品类型:<input name="productType" value="2" type="radio" checked="checked">本地生活服务<input name="productType" value="1" type="radio" >标准商品<input name="productType" value="3" type="radio">二手商品<br/>
	商品类型: <input type="button" value="点击选择"  id="aa" onclick="showProductType()"><span id="showNumber"></span><input type="hidden"  name="categoryNumber"  id="categoryNumber"><br/>
	商品名称:<input type="text" name="productName" placeholder="30个字之内"><br/><br/>
	商品品牌:<input type="text" name="productBrand" placeholder="20个字之内">市场价:<input type="text" name="productMarketPrice" nkeyup="value=value.replace(/[^uFF00-uFFFF]/g,'')">元&nbsp;&nbsp;&nbsp;&nbsp;主题帖价:<input type="text" name="topicPrice" nkeyup="value=value.replace(/[^uFF00-uFFFF]/g,'')">元<br/><br/>
	商品主图:<input type="file" id="productPicture" name="productPicture" value="浏览"/><img src="${path }/image/loading.gif" id="loading" style="display: none;"><input type="button" value="上传" onclick="return ajaxFileUpload();"> <br/><br/>
	<img src="" id="uploadPic" style="display: none;" width="50px" height="50px"><input type="hidden" id="productPicturePath" name="productPicturePath" /><br/><br/>
 	商品详细:<br/>
        <div style="width:800px;margin:20px auto 40px;">
<script type="text/plain" id="productDescriptionString" style="width:100%;height:500px;" placeholder="25000个字之内"></script>
</div>
<script type="text/javascript">
var ue = UM.getEditor('productDescriptionString');
</script>
 	<input type="button" value="发布主题帖" name="submitTopicButton" id="submitTopicButton">
 </form>	 </div>
 <!-- 分类div -->
 <div id="categoryDiv" >
 <input type="hidden" id="ajaxLoadFinish" value="0">
 </div>
 
 </div>
 <!-- <select id="province"><option>请选择</option></select>
       <select id="city"><option>请选择</option></select>
       <select id="county"><option>请选择</option></select> -->

<script type="text/javascript" src="${path }/kissy/editor-min.js"></script>
<script type="text/javascript">
    new KISSY.Editor("productDescriptionString", {
        base: getProjectName()+"/kissy/",
        pluginsConfig: {
            image: {
                tabs          : ["local", "link"], //"album"],
                upload: {
                    actionUrl : "kissy/filesupload.jsp"
                }
            }
        }
    });
</script>

 </body>
 </html>